package com.billing.model.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.ManagerUsersBean;

public interface ManagerUsersBeanMapper {

	ManagerUsersBean getUserByNameAndPwd(String loginname , String password);
	/**
	 * 获取管理员信息列表
	 * @return
	 */
	public List<ManagerUsersBean> selectManagerUsersBeanList(@Param("loginname")String loginname,@Param("organizationid")int organizationid,
			@Param("currentPage")int currentPage,@Param("pageSize")int pageSize);
	/**
	 * 获取管理员信息列表条数信息
	 * @return
	 */
	public int selectManagerUsersBeanNum(@Param("loginname")String loginname,@Param("organizationid")int organizationid);
	/**
	 * 新增管理员
	 * @param managerusers
	 * @return
	 */
	public int insertManagerUsersBean(ManagerUsersBean managerusers);
	/**
	 * 根据id获取管理员信息
	 * @param id
	 * @return
	 */
	public ManagerUsersBean getManagerUsersBean(@Param("id")String id);
	/**
	 * 修改管理员信息
	 * @param permissions
	 * @return
	 */
	public int updateManagerUsersBean(ManagerUsersBean managerusers);
	/**
	 * 根据id删除管理员信息
	 * @param id
	 * @return
	 */
	public int deleteManagerUsersBean(@Param("id")int id);
}
